﻿using Microsoft.AspNetCore.Mvc;
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Net;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using FRMS.BUS;
using FRMS.Model;

namespace FRMS.Controllers
{
    [Route("api/[controller]")]
    //[ApiController]
    public class ApplyJLController : Controller
    {
        //public IActionResult Index()
        //{
        //    return View();
        //}
        #region 巨龙设备注册
        [HttpPost]
        [Route("register")]
        public registerReturn register(ApplyJL ApplyJLInfo)
        {
            //registerReturn JLmessage = new ResponseMessage();
            registerReturn reg = new registerReturn();
            registerMessage regM = new registerMessage();
            List<registerMessage> list = new List<registerMessage>();
            try
            {
                
                reg.Name = ApplyJLInfo.Name;
                reg.TimeStamp = ApplyJLInfo.TimeStamp;
                regM.Session = "123456";
                regM.ServerVersion = "";
                list.Add(regM);
                //string info=

            }
            catch (Exception e)
            {

            }
            return reg;
        }

        #endregion

    }
}
